from django.urls import path
from apps.users.views import test,UsernameCountView,MobileCountView,register,loginview,logoutview
# from django.urls import register_converter
# from utils.converters import UsernameLenConverter
# register_converter(UsernameLenConverter, 'namelen')

urlpatterns = [
    # 判断用户名是否重复
    path('usernames/<username>/count/',UsernameCountView.as_view()),
    path('mobiles/<mobile>/count/',MobileCountView.as_view()),
    path('register/',register.as_view()),
    path('login/',loginview.as_view()),
    path('logout/',logoutview.as_view()),
]